import Vue from 'vue';
import * as types from './mutation-types';

export default {
    [types.SET_USER_INFO](state, data) {
        Vue.set(state, 'userInfo', data);
    },
    [types.LOG_OUT](state, data) {
        Vue.set(state, 'userInfo', {});
    },
    [types.SET_MACHINE_DETAILS](state, data) {
        Vue.set(state, 'machine', data);
    },
    [types.SET_BUY_INFO](state, data) {
        Vue.set(state, 'buyInfo', data);
    },
    [types.SET_SELL_INFO](state, data) {
        Vue.set(state, 'sellInfo', data);
    },
    [types.SET_ACTIVITY_DETAILS](state, data) {
        Vue.set(state, 'acticity', data);
    },
    [types.SET_UPDATE](state, data) {
        Vue.set(state, 'update', data);
    },
    [types.SET_ACTIVITY_DIRECT_DETAILS](state, data) {
        Vue.set(state, 'activityDirect', data);
    },
};
